package com.zy.bean.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 流程连接线表
 *
 * @author hanhuafeng
 * @TableName api_flow_edge
 */
@TableName(value = "api_flow_edge")
@Data
public class Edge implements Serializable {
    /**
     *
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 连接线编码
     */
    @TableField(value = "edge_code")
    private String edgeCode;

    /**
     * 连接线类型
     */
    @TableField(value = "type")
    private String type;

    /**
     * 连接源节点编码
     */
    @TableField(value = "source_node_code")
    private String sourceNodeCode;

    /**
     * 目标节点编码
     */
    @TableField(value = "target_node_code")
    private String targetNodeCode;

    /**
     * 开始位置，包含一对xy的json串
     */
    @TableField(value = "start_point")
    private String startPoint;

    /**
     * 结束位置，包含一对xy的json串
     */
    @TableField(value = "end_point")
    private String endPoint;

    /**
     * 参数
     */
    @TableField(value = "properties")
    private String properties;

    /**
     * 连接节点位置，一个数组，内部是两个map，包含了两对x,y
     */
    @TableField(value = "points_list")
    private String pointsList;

    /**
     * 对应项目的code
     */
    @TableField(value = "chart_code")
    private String chartCode;

    /**
     * 删除状态[1删除,0未删除]
     */
    @TableField(value = "exist")
    @TableLogic
    private Integer exist;

    /**
     * 创建用户id
     */
    @TableField(value = "create_user_id")
    private String createUserId;

    /**
     * 对应项目的版本code
     */
    @TableField(value = "chart_version_code")
    private String chartVersionCode;

    /**
     *
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     *
     */
    @TableField(value = "update_time")
    private Date updateTime;

    /**
     * 连接线文本
     */
    @TableField(value = "line_text")
    private String lineText;

    /**
     * 源节点锚点id
     */
    @TableField(value = "source_anchor_id")
    private String sourceAnchorId;

    /**
     * 目标节点锚点id
     */
    @TableField(value = "target_anchor_id")
    private String targetAnchorId;

    /**
     * 连接线形状
     */
    @TableField(value = "shape")
    private String shape;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
